import pickle

F=open('prime.txt','r')
l=pickle.load(F)
F.close()

n=1
i=0
while n<1000001:

   n*=l[i]
   i+=1
   print n,l[i]
